<%-- 
    Document   : admin-content-action
    Created on : Feb 28, 2012, 4:04:51 PM
    Author     : lab
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page import="util.SharingUtil"%>
<c:set var="role" value="<%=SharingUtil.getUser(session).getRole()%>"/>
<c:set var="content" value="${param.pcontent}"/>
<c:choose>
    <c:when test='${content=="add-question"}'>
        <%@include file="../admin/question-add.jsp" %>
    </c:when>
    <c:when test="${content=='manage-question'}">
        <%@include file="../admin/question-all.jsp" %>
    </c:when>
    <c:when test='${content=="modify-question"}'>
        <%@include file="../admin/question-modify.jsp" %>
    </c:when>
    <c:when test='${content=="question-category"}'>
        <%@include file="../admin/question-all-category.jsp" %>
    </c:when>
    <c:when test='${content=="add-exam"}'>
        <%@include file="../admin/exam-add.jsp" %>
    </c:when>
    <c:when test='${content=="manage-exam"}'>                   
        <%@include file="../admin/exam-manage.jsp" %>                                          
    </c:when>
    <c:when test='${content=="exam-details"}'>
        <%@include file="../admin/exam-details.jsp" %>
    </c:when>
    <c:when test='${content=="exam-list"}'>                   
        <%@include file="../admin/exam-of-class.jsp" %>                                          
    </c:when>
    <c:when test='${content=="post-category"}'>
        <%@include file="../admin/post-category.jsp" %>
    </c:when>
    <c:when test='${content=="add-post"}'>
        <%@include file="../admin/post-add.jsp" %>
    </c:when>                   
    <c:when test='${content=="modify-post"}'>
        <%@include file="../admin/post-update.jsp" %>
    </c:when>
    <c:when test='${content=="manage-post"}'>
        <%@include file="../admin/post-manage.jsp" %>
    </c:when>
    <c:when test='${content=="update-post"}'>
        <%@include file="../admin/post-update.jsp" %>
    </c:when>

    <c:when test='${content=="add-user"}'>
        <%@include file="../admin/user-add.jsp" %>
    </c:when>
    <c:when test='${content=="manage-user"}'>
        <%@include file="../admin/user-manage.jsp" %>
    </c:when>

    <c:when test='${content=="profile"}'>
        <%@include file="../admin/user-profile.jsp" %>
    </c:when>
    <c:when test='${content=="add-class"}'>
        <%@include file="../admin/class-add.jsp" %>
    </c:when>
    <c:when test='${content=="manage-class"}'>
        <%@include file="../admin/class-manage.jsp" %>
    </c:when>
    <c:when test='${content=="modify-class"}'>
        <%@include file="../admin/class-modify.jsp" %>
    </c:when>
    <c:when test='${content=="class-list"}'>
        <%@include file="../admin/class-of-student.jsp" %>
    </c:when>
    <c:otherwise>
        <%@include  file="../admin/home.jsp" %>
    </c:otherwise>

</c:choose>